package com.glodon.paas.monitor.server.dto;

import java.io.Serializable;

public class MonitorResultMsg<T extends Serializable> implements Serializable {

	private static final long	serialVersionUID	= 1300423973508746087L;
	private boolean				isSuccess			= false;
	private String				resultCode;
	private String				resultMsg;

	private T					resultObject;

	/**
	 * 默认isSuccess=false;
	 */
	public MonitorResultMsg() {

	}

	public MonitorResultMsg(boolean isSuccess) {
		this.isSuccess = isSuccess;
	}

	public String getResultCode() {
		return resultCode;
	}

	public void setResultCode(String resultCode) {
		this.resultCode = resultCode;
	}

	public void setResultCode(int resultCode) {
		this.resultCode = resultCode + "";
	}

	public String getResultMsg() {
		return resultMsg;
	}

	public void setResultMsg(String resultMsg) {
		this.resultMsg = resultMsg;
	}

	public boolean isSuccess() {
		return isSuccess;
	}

	public void setSuccess(boolean isSuccess) {
		this.isSuccess = isSuccess;
	}

	public T getResultObject() {
		return resultObject;
	}

	public void setResultObject(T resultObject) {
		this.resultObject = resultObject;
	}

	public String toString() {
		return "isSuccess:" + this.isSuccess + ",resultCode:" + this.resultCode + ",resultMsg:" + this.resultMsg;
	}

}
